package com.softwinner.bt.util;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class BTConfig {
	//广播给方案商处理业务
	public static final int HAND_UP_CMD = 1;
	public static final int MAKE_CALL_CMD = 2;
	public static final int SEND_NAVI_CMD = 4;
	public static final int SPEAKER_DISABLE_CMD = 8;//静音
	public static final int SPEAKER_ENABLE_CMD = 16;//开喇叭	
	public static final int MAKE_CALL_OTHER_CMD = 32;//拨分机号码
	
	public static final int GOC_SEND_DTMF = 0xa;  //发送dtmf指令
	public static final int GOC_SEND_RESULT = 0xb;  //发送已经解析的数据
	public static final int	ECAR_CALL_OTHER_CMD = 0xc;//翼卡拨打分机号码
	
	//接受蓝牙广播状态
	public static final int		BLUE_CONNECTED =  0;//连接
	public static final int		BLUE_NOT_CONNECTED =  1;//断开
	public static final int		CALL_STATUS_INCOMING = 2;//来电
	public static final int		CALL_STATUS_OUTCALL = 3;//拨打电话;
	public static final int		CALL_STATUS_HAND_UP = 4;//挂断
	public static final int		CALL_STATUS_OUTCALLING = 5;//接通
	

	public static final String  ECAR_REC_DTMF = "dtmf";//dtmf
	public static final String  ECAR_REC_RESULT = "result";//解析结果
	
	public static final String  ECAR_RECEICVER_CMD = "BT_RECEIVE_CMD";//翼卡接收到的广播关键字
	public static final String  ECAR_SENDCMD = "BT_SEND_CMD";//翼卡发送广播的命令参数
	
	public static final String  ECAR_CALL_OTHER = "CALL_OTHER";//翼卡拨打分机号码
	public static final String  ECAR_CALL_NUMBER = "CALL_PHONE_NUMBER";//翼卡拨打电话号码
	public static final String  ECAR_CALL_NAME = "CALL_PHONE_NAME";//翼卡拨打名字
	
	public static final String ECAR_SEND_ACTION = "com.android.ecar.tnc.send"; //翼卡发广播
	public static final String CALL_RECEIVE_ACTION = "com.android.ecar.tnc.rec";//翼卡接收广播
	public static final String CONTACT_QUERY_URL = "content://com.cardroid.bt.provides.personprovider/person";
	
	//add wuyb
	public static final String BT_OPEN_ACTION = "com.android.bt.open";
	public static final String BT_CLOSE_ACTION = "com.android.bt.close";
	public static final String BT_GET_CONTACTS = "com.android.bt.getcontacts"; 
	public static final String BT_CONNECTED = "com.android.bt.connected";
	public static final String BT_DISCONNECTED = "com.android.bt.disconnected";
	public static final String BT_UPDATE_CONTACTS = "com.android.bt.update.contact"; 
	public static final String BT_UPDATE_CONTACTS_FINISHED = "com.android.bt.update.contact.finished";
	public static final String BT_CALL = "com.android.bt.call";
	public static final String BT_HANG_UP = "com.android.bt.hang.up";
	
	public static void sendBroadcast(Context context,String action){
    	context.sendBroadcast(new Intent(action));
    }
	
}
